import request from "@/utils/request";

export function list(params){
    return request({
        url:'/patient/selectAll',
        method:'get',
        params:params
    })
}


export function save(data){
    return request({
        url:'/patient/save',
        method:'POST',
        data:data
    })
}


export function edit(data){
    return request({
        url:'/patient/edit',
        method:'POST',
        data:data
    })
}


export function delDoctor(id){
    return request({
        url:'/patient/delete/'+id,
        method:'DELETE',
    })
}



export function deleteBatch(data){
    return request({
        url:'/patient/deleteBatch',
        method:'POST',
        data:data
    })
}

export function pay(data){
    return request({
        url:'/patient/pay',
        method:'POST',
        data:data
    })
}
